//
//  AppDelegate.swift
//  FM
//
//  Created by x on 2017/8/22.
//  Copyright © 2017年 HLB. All rights reserved.
//

import UIKit


@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        //设置全局的导航栏字体颜色
        let naviBar = UINavigationBar.appearance()
        naviBar.titleTextAttributes = [NSForegroundColorAttributeName:UIColor.white]
        naviBar.setBackgroundImage(UIImage.init(named: "navigationBar"), for: UIBarMetrics.default)
        
        window = UIWindow(frame: UIScreen.main.bounds)
        
        window?.rootViewController = MainViewController()
        
        window?.makeKeyAndVisible()
        
        return true
    }


}

